package com.ysx.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysx.article.pojo.ApArticleConfig;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * APP已发布文章配置表 Mapper 接口
 * </p>
 *
 * @author ljh
 * @since 2021-09-08
 */
public interface ApArticleConfigMapper extends BaseMapper<ApArticleConfig> {
    @Update(value="update ap_article_config set is_down=#{isDown} where article_id=#{articleId}")
    void updateByArticleId(@Param(value="articleId") Long articleId, @Param(value="isDown")Integer isDown);
}
